package com.ipay.service;

import com.ipay.entity.PayorderEntity;

import java.util.List;
import java.util.Map;

/**
 * 支付交易订单流水（支付、退款）
 * 
 * @author hacken
 * @email hacken_hu@163.com
 * @date 2017-06-13 20:11:53
 */
public interface PayorderService {

	PayorderEntity queryObject(String id);

	List<PayorderEntity> queryList(Map<String, Object> map);

	int queryTotal(Map<String, Object> map);

	void save(PayorderEntity payorder);

	void update(PayorderEntity payorder);

	void delete(String id);

	void deleteBatch(String[] ids);

	public PayorderEntity queryByOderNo(String orderNo);

	/**
	 * 根据订单号查询 该订单对应的退款订单
	 * 
	 * @param orderNo
	 *            支付订单号
	 * @return
	 */
	public PayorderEntity queryByRelationOrder(String orderNo);
}
